@echo off

set SOURCE_DIRECTORY=%~1
set GENERATOR=%~2
rem set TOOLSET=%~3
set MODE=%~4
set ADDRESSMODEL=%~5
set ACTION=%~6

if "%NAME_PRODUCT%"     == ""   for %%a in (.) do set NAME_PRODUCT=%%~na
if "%SOURCE_DIRECTORY%" == ""   set SOURCE_DIRECTORY=%~dp0
if "%GENERATOR%"        == ""   set GENERATOR=Visual Studio 11
rem if "%TOOLSET%"          == ""   set TOOLSET=v120_CTP_Nov2012
if "%MODE%"             == ""   set MODE=Debug
if "%ADDRESSMODEL%"     == ""   set ADDRESSMODEL=32
if "%ACTION%"           == ""   set ACTION=stop
if "%ADDRESSMODEL%"     == "64" set SUFFIX= Win64
if "%BUILDDIR%"         == ""   set BUILDDIR=build-mingw-%MODE%%ADDRESSMODEL%

echo PROJECT NAME ......... %NAME_PRODUCT%
echo SOURCE DIRECTORY ..... %SOURCE_DIRECTORY%
echo IDE .................. QtCreator
echo TOOLSET .............. %GENERATOR%%SUFFIX%
echo BUILD TYPE ........... %MODE%
echo ADDRESS MODEL ........ %ADDRESSMODEL%
echo ACTION ............... %ACTION%

exit /b
